package com.ccb.jyzx.expand.tiantouonline.service.impl;

import com.ccb.jyzx.expand.tiantouonline.bean.SchedulerBatch;
import com.ccb.jyzx.expand.tiantouonline.dao.SchedulerBatchDao;
import com.ccb.jyzx.expand.tiantouonline.service.SchedulerBatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @projectName: extend
 * @author: jianghaolin
 * @date: 2019/11/21
 * @version: 1.0
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SchedulerBatchServiceImpl implements SchedulerBatchService {

    @Autowired
    private SchedulerBatchDao schedulerBatchDao;

    @Override
    public SchedulerBatch findOne(String id) {
        return schedulerBatchDao.findOne(id);
    }

    @Override
    public List<SchedulerBatch> findAll() {
        return schedulerBatchDao.findAll();
    }
}
